Took me a bit to actually come up with a solve for this thing. This solution was more work than translating the post! It also appears that I misremembered one of the translations and minimized cost rather than area.